package KTP;

import java.io.File;
import java.util.Scanner;

public class Lx04 {
    public static void main(String[] args) {
        File file = new File("D:\\");
        File[] list = file.listFiles();
        int num = 0;
        for(File f:list) {
            num++;
            System.out.println(f);
        }
        System.out.println(num);
    }
}
